package com.deyuanyun.pic.pipe.domain.exceldomain;

import com.caixu.beanvalidateutil.annotations.CodeVail;
import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.CodeValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;

import java.util.Date;


public class PipeTeeImportDemo {

	private String code;
	
	@DataValidate(notNull = true,myFunction=PipeLineValidata.class,myFunctionMessage="管道不存在")
	private String pipeLineId;

	@DataValidate(notNull = true,myFunction=PipeSegmentValidata.class,myFunctionMessage="管段不存在！")
    private String pipeSegmentId;

	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
    private String teeNumber;

//	@DataValidate(lengthLimit="32",lengthLimitMessage="长度不能大于80")
//    private String ugwwNumber;
//
//	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
//    private String dgwwNumber;
    
    @DataValidate(notNull = true,type = Number.class,numberRang="{-180,180}",notNullMessage="x坐标范围只能是-180至180")    
    private String x;
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-90,90}",notNullMessage="y坐标范围只能是-90至90")
    private String y;
	    
	@DataValidate(notNull = true,type = Number.class,numberRang="{-99999,999999}",notNullMessage="z坐标范围只能是0至999999米")
    private String z;

	@CodeVail(majorCode="TEE_TYPE",fieldName="三通类型")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String teeType;

	@CodeVail(majorCode="TEE_MATERIAL",fieldName="三通材质")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String teeMaterial;

	@CodeVail(majorCode="YES_OR_NO",fieldName="是否有栅栏")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String scraperbarind;

	@DataValidate(lengthLimit="50",lengthLimitMessage="长度不能大于50")
    private String teeSize;

	@CodeVail(majorCode="DIAMETER",fieldName="支线直径")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String branchDiameter;
	
	
	@DataValidate(numberRang="{0,50}",type = Number.class)
    private String branchWallThickness;
	
	@CodeVail(majorCode="DIAMETER",fieldName="出口壁厚")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String outletDiameter;
	
	@DataValidate(numberRang="{0,50}",type = Number.class)
	private String outletWallThickness;

	
	@CodeVail(majorCode="CONNECTION_TYPE",fieldName="出口连接方式")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String outletConnectionType;

	@DataValidate(type = Number.class)
    private String pressureRating;

	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
    private String manufacturer;

//	@DataValidate(notNull = true)
    @DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
    private String manufactureddate;

    @DataValidate(lengthLimit="50",lengthLimitMessage="长度不能大于50")
    private String recorder;

    @DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
    private String recordtime;
    
    @DataValidate(lengthLimit="1000",lengthLimitMessage="长度不能大于1000")
    private String createRemark;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPipeLineId() {
		return pipeLineId;
	}

	public void setPipeLineId(String pipeLineId) {
		this.pipeLineId = pipeLineId;
	}

	public String getPipeSegmentId() {
		return pipeSegmentId;
	}

	public void setPipeSegmentId(String pipeSegmentId) {
		this.pipeSegmentId = pipeSegmentId;
	}

	public String getTeeNumber() {
		return teeNumber;
	}

	public void setTeeNumber(String teeNumber) {
		this.teeNumber = teeNumber;
	}

	public String getX() {
		return x;
	}

	public void setX(String x) {
		this.x = x;
	}

	public String getY() {
		return y;
	}

	public void setY(String y) {
		this.y = y;
	}

	public String getZ() {
		return z;
	}

	public void setZ(String z) {
		this.z = z;
	}

	public String getTeeType() {
		return teeType;
	}

	public void setTeeType(String teeType) {
		this.teeType = teeType;
	}

	public String getTeeMaterial() {
		return teeMaterial;
	}

	public void setTeeMaterial(String teeMaterial) {
		this.teeMaterial = teeMaterial;
	}

	public String getScraperbarind() {
		return scraperbarind;
	}

	public void setScraperbarind(String scraperbarind) {
		this.scraperbarind = scraperbarind;
	}

	public String getTeeSize() {
		return teeSize;
	}

	public void setTeeSize(String teeSize) {
		this.teeSize = teeSize;
	}

	public String getBranchDiameter() {
		return branchDiameter;
	}

	public void setBranchDiameter(String branchDiameter) {
		this.branchDiameter = branchDiameter;
	}

	public String getOutletWallThickness() {
		return outletWallThickness;
	}

	public void setOutletWallThickness(String outletWallThickness) {
		this.outletWallThickness = outletWallThickness;
	}

	public String getBranchWallThickness() {
		return branchWallThickness;
	}

	public void setBranchWallThickness(String branchWallThickness) {
		this.branchWallThickness = branchWallThickness;
	}

	public String getOutletDiameter() {
		return outletDiameter;
	}

	public void setOutletDiameter(String outletDiameter) {
		this.outletDiameter = outletDiameter;
	}

	public String getOutletConnectionType() {
		return outletConnectionType;
	}

	public void setOutletConnectionType(String outletConnectionType) {
		this.outletConnectionType = outletConnectionType;
	}

	public String getPressureRating() {
		return pressureRating;
	}

	public void setPressureRating(String pressureRating) {
		this.pressureRating = pressureRating;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public String getManufactureddate() {
		return manufactureddate;
	}

	public void setManufactureddate(String manufactureddate) {
		this.manufactureddate = manufactureddate;
	}

	public String getRecorder() {
		return recorder;
	}

	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}

	public String getRecordtime() {
		return recordtime;
	}

	public void setRecordtime(String recordtime) {
		this.recordtime = recordtime;
	}

	public String getCreateRemark() {
		return createRemark;
	}

	public void setCreateRemark(String createRemark) {
		this.createRemark = createRemark;
	}
    
    
}
